document.querySelector('.burger-menu').addEventListener('click', () => {
    document.querySelector('.nav-links').classList.toggle('active');
    document.querySelectorAll('.nav-links li').forEach((link, index) => {
        link.style.animationDelay = index * 0.2 + 's';
    });
});

// 添加视口缩放适配
window.addEventListener('resize', () => {
    const meta = document.querySelector('meta[name=viewport]');
    if (window.innerWidth < 768) {
        meta.setAttribute('content', 'width=device-width, initial-scale=1.0');
    } else {
        meta.setAttribute('content', 'width=1200');
    }
});